<?php
/**
 * Created by PhpStorm.
 * User: 刚
 * Date: 2017/7/24
 * Time: 17:45
 */
include_once ('AbstractBookFactory.php');

include_once ('OReillyPHPBook.php');
include_once ('OReillyMySQLBook.php');

class OReillyBookFactory extends AbstractBookFactory{
    private $context = "OReilly";
    function makePHPBook()
    {
        return new OReillyPHPBook;

    }
    function makeMySQLBook()
    {
        return new OReillyMySQLBook;
    }
}